package com.example.cloudmusicserve.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.cloudmusicserve.entity.User;
import com.example.cloudmusicserve.entity.UserMessage;
import com.example.cloudmusicserve.entity.UserUpdataMsg;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description: UserDao
 * @author: xiaoyuan
 * @time: 2023/5/27
 */
@Repository
public interface UserDao{

    //查看所有用户
    public List<UserMessage> getAll();

    //查看用户是否登录
    public Integer queryUser(User user);

    //用户注册
    public Integer addUser(User user);

    //通过用户名查询条数
    public Integer queryByUsername(User user);

    //通过用户名来获取用户信息
    public UserMessage queryByUsernameOfMsg(String username);

    //更改用户信息
    public Integer updateUserMsg(UserUpdataMsg userUpdataMsg);

}
